﻿// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "Character/PlayerCharacter.h"
#include "Character/BossCharacter.h"
#include "Components/HorizontalBox.h"
#include "Components/ProgressBar.h"
#include "MainUIWidget.generated.h"

/**
 * 
 */
UCLASS()
class COMBAT_GAME_CPP_API UMainUIWidget : public UUserWidget
{
	GENERATED_BODY()

public:
	virtual bool Initialize();


	UPROPERTY(meta=(BindWidget))
	UProgressBar* HealthBar;

	UPROPERTY(BlueprintReadWrite)
	APlayerCharacter* Player;

	UPROPERTY(BlueprintReadWrite, EditAnywhere)
	UWidgetAnimation* BloodScreenAnim;

	UFUNCTION(BlueprintCallable)
	float GetHealthProgress();

	UFUNCTION(BlueprintCallable)
	void PlayBloodScreenAnim();

	UPROPERTY(meta=(BindWidget))
	UProgressBar* BossHealthBar;

	UPROPERTY(meta=(BindWidget))
	UHorizontalBox* BossHealthBarPanel;

	UPROPERTY(BlueprintReadWrite)
	ABossCharacter* Boss;

	UFUNCTION(BlueprintCallable)
	float GetBossHealthProgress();


};
